import 'package:chat/components/chat_user_list.dart';
import 'package:flutter/material.dart';

class MainPage extends StatelessWidget {
  const MainPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('谈天说地'),
        actions: [IconButton(onPressed: () {}, icon: const Icon(Icons.add_circle))],
      ),
      body: const ChatUserList(),
      bottomNavigationBar: BottomNavigationBar(
        type: BottomNavigationBarType.fixed,
        items: const [
          BottomNavigationBarItem(icon: Icon(Icons.message),label: "聊天"),
          BottomNavigationBarItem(icon: Icon(Icons.groups),label: "群组"),
          BottomNavigationBarItem(icon: Icon(Icons.settings),label: "设置"),
          BottomNavigationBarItem(icon: Icon(Icons.account_circle),label: "我的"),
      ]),
    );
  }
}
